home *** CD-ROM | disk | FTP | other *** search
/ Aminet 25 / Aminet 25 (1998)(GTI - Schatztruhe)[!][Jun 1998].iso / Aminet / biz / demo / ElasticDreamsE.lha / ElasticDreamsDemoEng / Install_ElasticDreams < prev    next >
Encoding:
Text File  |  1998-03-14  |  13.2 KB  |  721 lines

  1. ; $VER: ElasticDreams_Install 1.000 (04.02.98)
  2. ; Script to install ElasticDreams Version 1.0
  3.  
  4. (complete 0)
  5. (user 1)
  6.  
  7. ;=============================================================================
  8. ; English strings
  9.  
  10. (set default_lang 4)
  11.  
  12. (set #bad-kick "ElasticDreams needs Amiga-OS 3.0 or higher")
  13.  
  14. (set SelectDir1Msg
  15.      (cat "Please select a directory\nto install ElasticDreams in"
  16.      )
  17. )
  18.  
  19. (Set ProgMsg
  20.      (cat "Which parts should i install?"
  21.      )
  22. )
  23.  
  24.  (set Choice1Msg "ElasticDreams Mainprogram (8 MB)")
  25.  (set Choice2Msg "ElasticDreams Tools (1 MB)")
  26.  (set Choice3Msg "ElasticDreams Instruction (200 KB)")
  27.  
  28.  (set FPU1Msg "None")
  29.  (set FPU2Msg "Yes, this machine is with FPU")
  30.  
  31.  (set CPU1Msg "MC68000")
  32.  (set CPU2Msg "MC68030")
  33.  (set CPU3Msg "MC68040")
  34.  (set CPU4Msg "MC68060")
  35.  (set CPU5Msg "PPC603/604")
  36.  
  37.  (set CPUMsg "What CPU does the machine have that you are installing ElasticDreams Pro?")
  38.  
  39.  (set UpDategraf "Checking and updating graffiti.library, if needed...")
  40.  
  41.  (set InstallElasticDreamsProg "Installing ElasticDreams professional main program...")
  42.  (set InstallLoader "Installing loader...")
  43.  (set InstallSaver "Installing saver...")
  44.  (set InstallOperator "Installing Operator files...")
  45.  (set InstallViewer "Installing viewers...")
  46.  (set InstallGuide "Installing Guide-File...")
  47.  (set InstallTools "Installing Tools...")
  48.  (set InstallBG "Installing Background...")
  49.  (set InstallImages "Installing Images...")
  50.  
  51.  (set AssignAdd1
  52.      (cat "\nAdding the ElasticDreams assignment to s:user-startup - it currently looks like this:\n\n%s\n\n"
  53.           (cat "assign ElasticDreams: " ElasticDreamsDir)
  54.      )
  55. )
  56.  
  57. ;=============================================================================
  58. ; German strings
  59.  
  60. (if   (= @language "deutsch")
  61. (
  62.  (set default_lang 2)
  63.  
  64.  (set #bad-kick "ElasticDreams benötigt mindestens Amiga-OS 3.0 oder höher")
  65.  
  66.  (set SelectDir1Msg
  67.       (cat "Wählen Sie ein Verzeichnis, wo Sie ElasticDreams "
  68.            "installieren möchten. Ein Verzeichnis mit den "
  69.            "Namen ElasticDreams wird automatisch angelegt!"
  70.       )
  71.  )
  72.  
  73.  (Set ProgMsg
  74.       (cat "\nWelche Dateien sollen installiert werden?\n"
  75.       )
  76.  )
  77.  
  78.  (set Choice1Msg "ElasticDreams Hauptprogramm (ca. 8 MB)")
  79.  (set Choice2Msg "ElasticDreams Tools (ca. 1 MB)")
  80.  (set Choice3Msg "ElasticDreams Anleitung (ca. 200 KB)")
  81.  
  82.  (set FPU1Msg "Keine vorhanden")
  83.  (set FPU2Msg "ja, FPU vorhanden")
  84.  
  85.  (set CPU1Msg "MC68000")
  86.  (set CPU2Msg "MC68030")
  87.  (set CPU3Msg "MC68040")
  88.  (set CPU4Msg "MC68060")
  89.  (set CPU5Msg "PPC603/604")
  90.  
  91.  (set CPUMsg "Welchen Prozessor besitzt der Computer, auf dem Sie ElasticDreams installieren möchten?")
  92.  
  93.  (set UpDategraf "Prüfe und Erneuere die graffiti.library, wenn nötig...")
  94.  
  95.  (set InstallElasticDreamsProg "Installiere ElasticDreams Version 2.0 Hauptprogramm...")
  96.  (set InstallLoader "Installiere Lademodule...")
  97.  (set InstallSaver "Installiere Speichermodule...")
  98.  (set InstallOperator "Installiere Bildbearbeitungsmodule...")
  99.  (set InstallViewer "Installiere Anzeigemodule...")
  100.  (set InstallGuide "Installiere Guide-Datei...")
  101.  (set InstallTools "Installiere Werkzeuge...")
  102.  (set InstallBG "Installiere Hintergrund...")
  103.  (set InstallImages "Installing Bilder...")
  104.  
  105.  (set AssignAdd1
  106.       (cat "\nFüge ElasticDreams Zuweisung an s:user-startup - Es würde wie folgt Aussehen:\n\n%s\n\n"
  107.            (cat "assign ElasticDreams: " ElasticDreamsDir)
  108.       )
  109.  )
  110. )
  111. )
  112.  
  113. (if (> (* 39 65536) (getversion "exec.library" (resident)))
  114.         (abort #bak-kick)
  115. )
  116.  
  117.  
  118. (welcome)
  119. (set old_level @user-level)
  120.  
  121. (user 2)
  122.  
  123. (if ( < (exists "ElasticDreams:" (noreq)) 2)
  124.   (
  125.    (set target (askdir
  126.           (prompt SelectDir1Msg)
  127.           (help #which-dir-help)
  128.           (default "SYS:")
  129.    ))
  130.    (set ElasticDreamsDir        (tackon target "ElasticDreams"))
  131.   )
  132. )
  133.  
  134. (if (exists "ElasticDreams:" (noreq))
  135.   (
  136.    (set target "ElasticDreams:")
  137.    (set ElasticDreamsDir "ElasticDreams:")
  138.   )
  139. )
  140.  
  141. (user old_level)
  142.  
  143. (set WAS
  144.       (askoptions
  145.       (prompt ProgMsg)
  146.       (help   @askchoice-help)
  147.       (choices Choice1Msg Choice2Msg Choice3Msg)
  148.       (default 7)
  149.       )
  150. )
  151.  
  152. (set MainDirPPC        (tackon ElasticDreamsDir "MainPPC"))
  153. (set LoaderDir        (tackon ElasticDreamsDir "Loader"))
  154. (set LoaderDirPPC    (tackon ElasticDreamsDir "LoaderPPC"))
  155. (set OperatorDir    (tackon ElasticDreamsDir "Operator"))
  156. (set OperatorDirPPC    (tackon ElasticDreamsDir "OperatorPPC"))
  157. (set ViewerDir        (tackon ElasticDreamsDir "Viewer"))
  158. (set SaverDir        (tackon ElasticDreamsDir "Saver"))
  159. (set ToolsDir        (tackon ElasticDreamsDir "Tools"))
  160. (set DocDir        (tackon ElasticDreamsDir "Docs"))
  161. (set ImagesDir        (tackon ElasticDreamsDir "Images"))
  162. (set BackgroundDir    (tackon ElasticDreamsDir "Background"))
  163. (set BackgroundSmallDir (tackon ElasticDreamsDir "Background/Small"))
  164.  
  165. (If (IN WAS 0)
  166.  (
  167.   (set CPU
  168.       (askchoice
  169.       (prompt CPUMsg)
  170.       (help   @askchoice-help)
  171.       (choices CPU1Msg CPU2Msg CPU3Msg CPU4Msg CPU5Msg)
  172.       (default 1)
  173.       )
  174.   )
  175.  
  176.   (set FPU
  177.       (askchoice
  178.       (prompt FPUMsg)
  179.       (help   @askchoice-help)
  180.       (choices FPU1Msg FPU2Msg)
  181.       (default 1)
  182.       )
  183.   )
  184.  
  185.   (if ( < (exists ElasticDreamsDir (noreq) ) 2)
  186.     (makedir ElasticDreamsDir
  187.         (prompt "Creating ElasticDreams directory...")
  188.         (help @makedir-help)
  189.         (infos)
  190.     )
  191.   )
  192.  
  193.   (complete 10)
  194.  
  195.   (if ( < (exists LoaderDir (noreq) ) 2)
  196.     (makedir LoaderDir
  197.         (prompt "Creating Loader directory...")
  198. ;        (help @makedir-help)
  199.     )
  200.   )
  201.  
  202.   (complete 11)
  203.  
  204.   (if ( < (exists ViewerDir (noreq) ) 2)
  205.     (makedir ViewerDir
  206.         (prompt "Creating Viewer directory...")
  207. ;        (help @makedir-help)
  208.     )
  209.   )
  210.  
  211.   (complete 12)
  212.  
  213.   (if ( < (exists BackgroundDir (noreq) ) 2)
  214.     (makedir BackgroundDir
  215.         (prompt "Creating Background directory...")
  216. ;        (help @makedir-help)
  217.     )
  218.   )
  219.  
  220.   (complete 13)
  221.  
  222.   (if ( < (exists BackgroundSmallDir (noreq) ) 2)
  223.     (makedir BackgroundSmallDir
  224.         (prompt "Creating BackgroundSmall directory...")
  225. ;        (help @makedir-help)
  226.     )
  227.   )
  228.  
  229.   (complete 14)
  230.  
  231.   (if ( < (exists SaverDir (noreq) ) 2)
  232.     (makedir SaverDir
  233.         (prompt "Creating Saver directory...")
  234. ;        (help @makedir-help)
  235.     )
  236.   )
  237.  
  238.   (complete 15)
  239.  
  240.   (if ( < (exists ToolsDir (noreq) ) 2)
  241.     (makedir ToolsDir
  242.         (prompt "Creating Tools directory...")
  243. ;        (help @makedir-help)
  244.     )
  245.   )
  246.  
  247.   (complete 16)
  248.  
  249.   (if ( < (exists OperatorDir (noreq) ) 2)
  250.     (makedir OperatorDir
  251.         (prompt "Creating Operator directory...")
  252. ;        (help @makedir-help)
  253.     )
  254.   )
  255.  
  256.   (complete 17)
  257.  
  258.   (if ( < (exists ImagesDir (noreq) ) 2)
  259.     (makedir ImagesDir
  260.         (prompt "Creating Images directory...")
  261. ;        (help @makedir-help)
  262.     )
  263.   )
  264.  
  265.   (complete 18)
  266.  
  267. (copyfiles
  268.     (prompt "Installing Font files...")
  269.     (help @copyfiles-help)
  270.     (source "Fonts/")
  271.     (dest "FONTS:")
  272.     (all)
  273.     (confirm)
  274. )
  275.  
  276.  
  277. (If (IN WAS 2)
  278.  (
  279.  
  280.   (complete 20)
  281.  
  282.   (if (= default_lang 4)
  283.   (
  284.       (copyfiles
  285.         (prompt "Copy ElasticDreams...")
  286.         (help @copyfiles-help)
  287.         (source "ElasticDreamsEnglish")
  288.         (dest ElasticDreamsDir)
  289.                 (newname "ElasticDreams")
  290.         (confirm)
  291.           )
  292.  
  293.   ))
  294.  
  295.   (if (= default_lang 2)
  296.    (
  297.       (copyfiles
  298.         (prompt "Kopiere ElasticDreams...")
  299.         (help @copyfiles-help)
  300.         (source "ElasticDreamsDeutsch")
  301.         (dest ElasticDreamsDir)
  302.                 (newname "ElasticDreams")
  303.         (confirm)
  304.           )
  305.    )
  306.   )
  307.  )
  308. )
  309.  
  310.  
  311.   (complete 26)
  312.  
  313.   (copyfiles
  314.     (prompt "Installing ElasticDreams Icon...")
  315.     (help @copyfiles-help)
  316.     (source "ElasticDreams.info")
  317.     (dest ElasticDreamsDir)
  318.     (confirm)
  319.   )
  320.  
  321.  
  322. (If (IN WAS 2)
  323.  (
  324.  
  325.   (complete 28)
  326.  
  327.   (if (= default_lang 4)
  328.   (
  329.  
  330.  
  331.  
  332.   (complete 30)
  333.  
  334.       (copyfiles
  335.         (prompt "Installing ElasticDreams SmallBackground...")
  336.         (help @copyfiles-help)
  337.         (source "Background English/Small/")
  338.         (dest BackgroundSmallDir)
  339.         (all)
  340.         (confirm)
  341.       )
  342.  
  343.   (complete 34)
  344.  
  345.       (copyfiles
  346.         (prompt "Installing Composer Background...")
  347.         (help @copyfiles-help)
  348.         (source "Background English/Compose Blank")
  349.         (dest BackgroundDir)
  350.         (newname "BGCompose")
  351.         (confirm)
  352.       )
  353.  
  354.   (complete 36)
  355.  
  356.       (copyfiles
  357.         (prompt "Installing Elastic Background...")
  358.         (help @copyfiles-help)
  359.         (source "Background English/Elastic Blank")
  360.         (dest BackgroundDir)
  361.         (newname "BGElastic")
  362.         (confirm)
  363.       )
  364.  
  365.   (complete 38)
  366.  
  367.       (copyfiles
  368.         (prompt "Installing Manager Background...")
  369.         (help @copyfiles-help)
  370.         (source "Background English/Background Manager")
  371.         (dest BackgroundDir)
  372.         (newname "BGManager")
  373.         (confirm)
  374.       )
  375.  
  376.   ))
  377.  
  378.   (if (= default_lang 2)
  379.    (
  380.  
  381.   (complete 30)
  382.  
  383.       (copyfiles
  384.         (prompt "Installiere ElasticDreams Hintergrund...")
  385.         (help @copyfiles-help)
  386.         (source "Background Deutsch/Small/")
  387.         (dest BackgroundSmallDir)
  388.         (all)
  389.         (confirm)
  390.       )
  391.  
  392.   (complete 34)
  393.  
  394.       (copyfiles
  395.         (prompt "Installiere Composer Hintergrund...")
  396.         (help @copyfiles-help)
  397.         (source "Background Deutsch/Compose Blank")
  398.         (dest BackgroundDir)
  399.         (newname "BGCompose")
  400.         (confirm)
  401.       )
  402.  
  403.   (complete 36)
  404.  
  405.       (copyfiles
  406.         (prompt "Installiere Elastic Hintergrund...")
  407.         (help @copyfiles-help)
  408.         (source "Background Deutsch/Elastic Blank")
  409.         (dest BackgroundDir)
  410.         (newname "BGElastic")
  411.         (confirm)
  412.       )
  413.  
  414.   (complete 38)
  415.  
  416.       (copyfiles
  417.         (prompt "Installiere Manager Hintergrund...")
  418.         (help @copyfiles-help)
  419.         (source "Background Deutsch/Background Manager")
  420.         (dest BackgroundDir)
  421.         (newname "BGManager")
  422.         (confirm)
  423.       )
  424.    )
  425.   )
  426.  )
  427. )
  428.  
  429.   (complete 39)
  430.  
  431. (If (= CPU 0)
  432.  (
  433.   (copyfiles
  434.     (prompt "Installing Operator files...")
  435.     (help @copyfiles-help)
  436.     (source "Operator68k/")
  437.     (dest OperatorDir)
  438.     (all)
  439.     (confirm)
  440.   )
  441.  
  442.   (copyfiles
  443.     (prompt "Installing loader...")
  444.     (help @copyfiles-help)
  445.     (source "Loader68000/")
  446.     (dest LoaderDir)
  447.     (all)
  448.     (confirm)
  449.   )
  450.  )
  451. )
  452.  
  453. (If (= CPU 1)
  454.  (
  455.   (copyfiles
  456.     (prompt "Installing Operator files...")
  457.     (help @copyfiles-help)
  458.     (source "Operator68k/")
  459.     (dest OperatorDir)
  460.     (all)
  461.     (confirm)
  462.   )
  463.  
  464.   (copyfiles
  465.     (prompt "Installing loader...")
  466.     (help @copyfiles-help)
  467.     (source "Loader68030/")
  468.     (dest LoaderDir)
  469.     (all)
  470.     (confirm)
  471.   )
  472.  )
  473. )
  474.  
  475. (If (= CPU 2)
  476.  (
  477.   (copyfiles
  478.     (prompt "Installing Operator files...")
  479.     (help @copyfiles-help)
  480.     (source "Operator68k/")
  481.     (dest OperatorDir)
  482.     (all)
  483.     (confirm)
  484.   )
  485.   (copyfiles
  486.     (prompt "Installing loader...")
  487.     (help @copyfiles-help)
  488.     (source "Loader68040/")
  489.     (dest LoaderDir)
  490.     (all)
  491.     (confirm)
  492.   )
  493.  )
  494. )
  495.  
  496. (If (= CPU 3)
  497.  (
  498.   (copyfiles
  499.     (prompt "Installing Operator files...")
  500.     (help @copyfiles-help)
  501.     (source "Operator68k/")
  502.     (dest OperatorDir)
  503.     (all)
  504.     (confirm)
  505.   )
  506.  
  507.   (copyfiles
  508.     (prompt "Installing loader...")
  509.     (help @copyfiles-help)
  510.     (source "Loader68060/")
  511.     (dest LoaderDir)
  512.     (all)
  513.     (confirm)
  514.   )
  515.  )
  516. )
  517.  
  518. (If (= CPU 4)
  519.  (
  520.  
  521.   (complete 40)
  522.  
  523.   (if ( < (exists OperatorDirPPC (noreq) ) 2)
  524.     (makedir OperatorDirPPC
  525.         (prompt "Creating OperatorPPC directory...")
  526. ;        (help @makedir-help)
  527.     )
  528.   )
  529.   (complete 41)
  530.  
  531.   (if ( < (exists LoaderDirPPC (noreq) ) 2)
  532.     (makedir LoaderDirPPC
  533.         (prompt "Creating LoaderPPC directory...")
  534. ;        (help @makedir-help)
  535.     )
  536.   )
  537.   (complete 42)
  538.  
  539.   (if ( < (exists MainDirPPC (noreq) ) 2)
  540.     (makedir MainDirPPC
  541.         (prompt "Creating MainPPC directory...")
  542. ;        (help @makedir-help)
  543.     )
  544.   )
  545.  
  546.   (copyfiles
  547.     (prompt "Installing loader...")
  548.     (help @copyfiles-help)
  549.     (source "Loader604/")
  550.     (dest LoaderDir)
  551.     (all)
  552.     (confirm)
  553.   )
  554.  
  555.   (copyfiles
  556.     (prompt "Installing loaderppc...")
  557.     (help @copyfiles-help)
  558.     (source "LoaderPPC/")
  559.     (dest LoaderDirPPC)
  560.     (all)
  561.     (confirm)
  562.   )
  563.  
  564.   (copyfiles
  565.     (prompt "Installing Operator files...")
  566.     (help @copyfiles-help)
  567.     (source "Operator604/")
  568.     (dest OperatorDir)
  569.     (all)
  570.     (confirm)
  571.   )
  572.  
  573.   (copyfiles
  574.     (prompt "Installing operatorppc...")
  575.     (help @copyfiles-help)
  576.     (source "OperatorPPC/")
  577.     (dest OperatorDirPPC)
  578.     (all)
  579.     (confirm)
  580.   )
  581.   (copyfiles
  582.     (prompt "Installing mainppc...")
  583.     (help @copyfiles-help)
  584.     (source "MainPPC/")
  585.     (dest MainDirPPC)
  586.     (all)
  587.     (confirm)
  588.   )
  589.  
  590.  )
  591. )
  592.  
  593.   (complete 43)
  594.  
  595.   (copyfiles
  596.     (prompt "Installing saver...")
  597.     (help @copyfiles-help)
  598.     (source "Saver/")
  599.     (dest SaverDir)
  600.     (all)
  601.     (confirm)
  602.   )
  603.  
  604. (IF (= FPU 1)
  605.  (
  606.   (complete 45)
  607.  
  608.   (copyfiles
  609.     (prompt "Installing OperatorFPU files...")
  610.     (help @copyfiles-help)
  611.     (source "OperatorFPU/")
  612.     (dest OperatorDir)
  613.     (all)
  614.     (confirm)
  615.   )
  616.  )
  617. )
  618.  
  619.   (complete 50)
  620.  
  621.   (copyfiles
  622.     (prompt "Installing viewers...")
  623.     (help @copyfiles-help)
  624.     (source "Viewer/")
  625.     (dest ViewerDir)
  626.     (all)
  627.     (confirm)
  628.   )
  629.  
  630.   (complete 68)
  631.  
  632.   (startup "ElasticDreams"
  633.     (prompt ("\nAdding the ElasticDreams assignment to s:user-startup - it currently looks like this:\n\n%s\n\n" (cat "assign ElasticDreams: " ElasticDreamsDir) ) )
  634.     (help @startup-help)
  635.     (command (cat "assign ElasticDreams: " ElasticDreamsDir))
  636.   )
  637.  
  638.  )
  639. )
  640.  
  641.   (complete 70)
  642.  
  643. (If (IN WAS 1)
  644.  (
  645.  
  646.   (copyfiles
  647.     (prompt "Installing Tools...")
  648.     (help @copyfiles-help)
  649.     (source "Tools/")
  650.     (dest ToolsDir)
  651.         (all)
  652.         (infos)
  653.     (confirm)
  654.   )
  655.  
  656.  )
  657. )
  658.  
  659. (If (IN WAS 2)
  660.  (
  661.  
  662.   (complete 75)
  663.  
  664.   (if (= default_lang 4)
  665.   (
  666.       (copyfiles
  667.           (prompt "Copying instruction...")
  668.           (help @copyfiles-help)
  669.           (source "Instruction/")
  670.           (dest DocDir)
  671.           (infos)
  672.           (all)
  673.           (confirm)
  674.       )
  675.  
  676.   ))
  677.  
  678.   (if (= default_lang 2)
  679.    (
  680.       (copyfiles
  681.           (prompt "Kopiere Anleitung...")
  682.           (help @copyfiles-help)
  683.           (source "Anleitung/" )
  684.           (dest DocDir)
  685.           (infos)
  686.           (all)
  687.           (confirm)
  688.       )
  689.    )
  690.   )
  691.  )
  692. )
  693.  
  694. (complete 90)
  695.  
  696. (copyfiles
  697.     (prompt "Installing Images...")
  698.     (help @copyfiles-help)
  699.     (source "ImagesMain/")
  700.     (dest ImagesDir)
  701.     (all)
  702.     (confirm)
  703. )
  704.  
  705. (complete 98)
  706.  
  707. (copylib
  708.     (prompt UpDategraf)
  709.     (help @copylib-help)
  710.     (source "libs/graffiti.library")
  711.     (dest "libs:")
  712.     (confirm)
  713. )
  714.  
  715. (run "c:assign ElasticDreams: " ElasticDreamsDir
  716.      (prompt "Assign ElasticDreams...")
  717.      (help "Keine Hilfe verfügbar.")
  718. )
  719.  
  720. (complete 100)
  721.